import requests from "./ajax";

const baseURL = 'business-elder'

// 获取视频列表
export const reqGetVideoList = (params) => {
    return requests({ url: `/wx/video/record/videoList`, method: 'get', params, headers: { 'Content-Type': 'application/x-www-form-urlencoded' } });
}
// 添加视频
export const reqAddVideo = (data) => requests({ url: `/wx/video/record/addOrUpdate`, data, method: 'post', headers: { 'Content-Type': 'application/json' } });

// 搜索床位
// export const reqSearchUser = (data) => requests(
//     { url: `${baseURL}/bed/getList/condition`, data, headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, method: 'post' }
// );
// 删除视频
export const reqdeleteVideo = (params) => requests(
    { url: `/wx/video/record/delete`, params, headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, method: 'get' }
);
// 播放视频
export const reqEnableList = () => requests(
    { url: `/file/gain`, headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, method: 'get' }
);
